import request from '@/utils/request'

export function getAccountList(query) {
  return request({
    url: '/finance/account/getList',
    method: 'post',
    data: query
  })
}

export function getAccountUsableList(query) {
  return request({
    url: '/finance/account/getAvailable',
    method: 'post',
    data: query
  })
}

export function getAccountDetail(id) {
  return request({
    url: '/finance/account/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveAccount(id) {
  return request({
    url: '/finance/account/save',
    method: 'post',
    data: id
  })
}

export function removeAccountByID(id) {
  return request({
    url: '/finance/account/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByAccountID(id) {
  return request({
    url: '/finance/account/change-status',
    method: 'post',
    data: id
  })
}

